home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2588 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1003 b 

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 32 2e 63 6f 6d 70 |Path: ne|ws2.comp|
|00000010| 75 6c 69 6e 6b 2e 63 6f | 6d 21 6e 6f 74 2d 66 6f |ulink.co|m!not-fo|
|00000020| 72 2d 6d 61 69 6c 0a 4e | 65 77 73 67 72 6f 75 70 |r-mail.N|ewsgroup|
|00000030| 73 3a 20 63 6f 6d 70 2e | 6c 61 6e 67 2e 63 0a 46 |s: comp.|lang.c.F|
|00000040| 72 6f 6d 3a 20 64 69 72 | 64 61 74 61 40 69 64 69 |rom: dir|data@idi|
|00000050| 72 65 63 74 2e 63 6f 6d | 20 28 50 68 69 6c 6c 20 |rect.com| (Phill |
|00000060| 4d 6f 72 61 6e 29 0a 53 | 75 62 6a 65 63 74 3a 20 |Moran).S|ubject: |
|00000070| 44 65 72 65 66 65 72 65 | 6e 63 69 6e 67 20 76 6f |Derefere|ncing vo|
|00000080| 69 64 2a 2a 0a 43 6f 6e | 74 65 6e 74 2d 54 79 70 |id**.Con|tent-Typ|
|00000090| 65 3a 20 54 65 78 74 2f | 50 6c 61 69 6e 3b 20 63 |e: Text/|Plain; c|
|000000a0| 68 61 72 73 65 74 3d 55 | 53 2d 41 53 43 49 49 0a |harset=U|S-ASCII.|
|000000b0| 4d 49 4d 45 2d 56 65 72 | 73 69 6f 6e 3a 20 31 2e |MIME-Ver|sion: 1.|
|000000c0| 30 0a 58 2d 4e 65 77 73 | 72 65 61 64 65 72 3a 20 |0.X-News|reader: |
|000000d0| 57 69 6e 56 4e 20 30 2e | 39 39 2e 36 0a 52 65 70 |WinVN 0.|99.6.Rep|
|000000e0| 6c 79 2d 54 6f 3a 20 64 | 69 72 64 61 74 61 40 69 |ly-To: d|irdata@i|
|000000f0| 64 69 72 65 63 74 2e 63 | 6f 6d 0a 58 2d 43 6c 69 |direct.c|om.X-Cli|
|00000100| 65 6e 74 2d 50 6f 72 74 | 3a 20 34 36 37 33 0a 4d |ent-Port|: 4673.M|
|00000110| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 72 61 67 6e |essage-I|D: <ragn|
|00000120| 61 72 6f 65 6b 31 39 39 | 36 4a 61 6e 32 32 2e 31 |aroek199|6Jan22.1|
|00000130| 31 34 39 31 35 2e 39 33 | 37 32 40 6e 65 77 73 32 |14915.93|72@news2|
|00000140| 2e 63 6f 6d 70 75 6c 69 | 6e 6b 2e 63 6f 6d 3e 0a |.compuli|nk.com>.|
|00000150| 58 2d 4e 6e 74 70 2d 50 | 6f 73 74 69 6e 67 2d 48 |X-Nntp-P|osting-H|
|00000160| 6f 73 74 3a 20 6f 6d 65 | 6e 2e 69 64 69 72 65 63 |ost: ome|n.idirec|
|00000170| 74 2e 63 6f 6d 0a 44 61 | 74 65 3a 20 32 32 20 4a |t.com.Da|te: 22 J|
|00000180| 61 6e 20 39 36 20 31 36 | 3a 34 39 3a 31 35 20 47 |an 96 16|:49:15 G|
|00000190| 4d 54 0a 53 65 6e 64 65 | 72 3a 20 64 69 72 64 61 |MT.Sende|r: dirda|
|000001a0| 74 61 40 6f 6d 65 6e 2e | 69 64 69 72 65 63 74 2e |ta@omen.|idirect.|
|000001b0| 63 6f 6d 0a 0a 49 66 20 | 61 6e 79 6f 6e 65 20 68 |com..If |anyone h|
|000001c0| 61 73 20 61 6e 79 20 73 | 75 67 65 73 74 69 6f 6e |as any s|ugestion|
|000001d0| 73 20 61 62 6f 75 74 20 | 6d 79 20 63 75 72 72 65 |s about |my curre|
|000001e0| 6e 74 20 70 72 6f 62 6c | 65 6d 20 69 74 20 77 6f |nt probl|em it wo|
|000001f0| 6f 75 6c 64 20 62 65 20 | 76 65 72 79 20 0a 68 65 |ould be |very .he|
|00000200| 6c 70 66 75 6c 6c 2e 0a | 49 20 6e 65 65 64 20 74 |lpfull..|I need t|
|00000210| 6f 20 72 65 61 64 20 69 | 6e 2c 20 61 74 20 72 75 |o read i|n, at ru|
|00000220| 6e 20 74 69 6d 65 2c 20 | 61 20 76 61 72 69 61 62 |n time, |a variab|
|00000230| 6c 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 66 69 65 |le numbe|r of fie|
|00000240| 6c 64 20 74 68 61 74 20 | 61 72 65 20 61 6c 73 6f |ld that |are also|
|00000250| 20 6f 66 20 0a 76 61 72 | 79 69 6e 67 20 74 79 70 | of .var|ying typ|
|00000260| 65 73 2e 20 4d 79 20 66 | 69 72 73 74 20 74 68 61 |es. My f|irst tha|
|00000270| 6f 75 67 68 74 20 77 61 | 73 3a 0a 0a 09 76 6f 69 |ought wa|s:...voi|
|00000280| 64 20 2a 2a 66 69 65 6c | 64 3b 0a 09 2a 66 69 65 |d **fiel|d;..*fie|
|00000290| 6c 64 09 3d 20 6e 65 77 | 20 76 6f 69 64 20 2a 20 |ld.= new| void * |
|000002a0| 5b 4e 75 6d 62 65 72 4f | 66 46 69 65 6c 64 73 5d |[NumberO|fFields]|
|000002b0| 3b 0a 0a 54 68 65 20 61 | 64 76 61 6e 74 61 67 65 |;..The a|dvantage|
|000002c0| 20 77 69 74 68 20 74 68 | 69 73 20 69 73 20 74 68 | with th|is is th|
|000002d0| 61 74 20 49 20 63 61 6e | 20 61 63 63 65 73 73 20 |at I can| access |
|000002e0| 74 68 65 20 66 69 65 6c | 64 73 20 62 79 20 69 6e |the fiel|ds by in|
|000002f0| 64 65 78 2e 20 54 68 65 | 20 70 72 6f 62 6c 65 6d |dex. The| problem|
|00000300| 20 0a 69 73 20 68 6f 77 | 20 64 6f 20 49 20 61 63 | .is how| do I ac|
|00000310| 63 65 73 73 20 74 68 65 | 6d 20 3f 20 54 68 69 73 |cess the|m ? This|
|00000320| 20 73 6e 69 70 70 65 74 | 20 67 69 76 65 73 20 6d | snippet| gives m|
|00000330| 65 20 65 72 72 6f 72 73 | 0a 0a 09 66 6f 72 20 28 |e errors|...for (|
|00000340| 69 3d 30 3b 69 3c 3d 4e | 75 6d 62 65 72 4f 66 46 |i=0;i<=N|umberOfF|
|00000350| 69 65 6c 64 73 3b 69 2b | 2b 29 0a 09 09 28 28 76 |ields;i+|+)...((v|
|00000360| 6f 69 64 20 2a 29 20 28 | 66 69 65 6c 64 29 29 5b |oid *) (|field))[|
|00000370| 69 5d 20 3d 20 6e 65 77 | 20 69 6e 74 3b 0a 53 6f |i] = new| int;.So|
|00000380| 20 77 68 61 72 20 49 20 | 6e 65 65 64 20 69 73 20 | whar I |need is |
|00000390| 61 6e 20 61 6c 79 74 65 | 72 6e 61 74 65 20 73 75 |an alyte|rnate su|
|000003a0| 67 67 65 73 74 69 6f 6e | 20 61 62 6f 75 74 20 64 |ggestion| about d|
|000003b0| 61 74 61 20 73 74 72 75 | 63 74 75 72 65 73 20 6f |ata stru|ctures o|
|000003c0| 72 20 74 68 65 20 0a 63 | 6f 72 72 65 63 74 20 73 |r the .c|orrect s|
|000003d0| 79 6e 74 61 78 2e 0a 0a | 54 68 61 6e 6b 73 20 69 |yntax...|Thanks i|
|000003e0| 6e 20 61 64 76 61 6e 63 | 65 0a 0a |n advanc|e.. |
+--------+-------------------------+-------------------------+--------+--------+